<template>
  <div id="app">
    <router-view></router-view>
    <tab-bar>
      <tab-bar-item path="/home">
        <div slot="item-icon">
          <img src="../src/assets/img/tabbar/home.png" alt="">
        </div>
        <div slot="item-icon-active">
            <img src="../src/assets/img/tabbar/home_active.png" alt="">
          </div>
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item  path="/category">
          <div slot="item-icon">
              <img src="../src/assets/img/tabbar/category.png" alt="">
            </div>
            <div slot="item-icon-active">
                <img src="../src/assets/img/tabbar/category_active.png" alt="">
              </div>
            <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/shop">
          <div slot="item-icon">
              <img src="../src/assets/img/tabbar/shopping.png" alt="">
            </div>
            <div slot="item-icon-active">
                <img src="../src/assets/img/tabbar/shopping_active.png" alt="">
              </div>
            <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/mine">
          <div slot="item-icon">
              <img src="../src/assets/img/tabbar/mine.png" alt="">
            </div>
            <div slot="item-icon-active">
                <img src="../src/assets/img/tabbar/mine_active.png" alt="">
              </div>
            <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>
import TabBar from './components/common/tabbar/TabBar'
import TabBarItem from './components/common/tabbar/TabBarItem'


export default {
  name: 'App',
  components: {
    TabBar,
    TabBarItem
  },
  
}
</script>

<style>
 @import "./assets/css/base.css";

</style>
